
<?php include_once 'common/header.php';  ?>
<!-- admin_main -->
<div class="admin_main">
	<!-- Admin_top end -->
	<?php include_once 'common/system_left.php';  ?>
	<!-- Admin_Left End -->
	<div class="admin_right">
		<div class="admin_right_title">
			<strong>客户管理</strong> &gt;&gt;  操作日志列表
		</div>
		<div class="admin_right_con">
			<table border="0" cellspacing="1" cellpadding="0">
			  <tr style="color:#0068b7;">
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>id</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>用户名</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>信息</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>登录ip</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>时间</strong></td>
			  </tr>
			  <?php foreach($log_list as $key=>$log){?>
			  <tr id="row_<?php echo $log['id'];?>">
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $log['id'];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $log['adminname'];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $log['info'];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $log['ip'];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo date('Y-m-d H:i',$log['add_time']);?></td>
			  </tr>
			  <?php }?>
			  <tr>
			  	<td colspan="5" height="35" align="right" valign="middle" bgcolor="#FFFFFF">
			  		<form action="/ychadmin/log/load_log_info/" method="get">
			  			用户名：<input type="text" id="adminname" name="adminname" style="width: 100px;" value="<?php echo $adminname?>" />
			  			时间：<input type="text" id="add_time" name="add_time" style="width: 100px;" value="<?php echo $add_time;?>"  onfocus="WdatePicker()" />
			  			
			  			<input type="submit" value="查询" />
			  		</form>
			  	</td>
			  </tr>
			  <tr>
			  
			  <td colspan="6"  height="35" align="center" valign="middle" bgcolor="#FFFFFF" class="page"><?php echo $this->pagination->create_links();?></td>
			  </tr>
			</table>
			</div>
	</div>
<!-- Admin_Right End -->
</div>
<!-- admin_main end -->
<script>
function remove(id){
	$.ajax({
		type: "post",
		url: "/ychadmin/log/delete_log/",
		data: "id="+id,
		success: function(msg){
			$("#dialog" ).dialog();
			if(msg == 1){
				$("#msg").html("删除成功！");
				$("#row_"+id).hide();
			}else{
				$("#msg").html("删除失败，请联系管理员！");
			}
			setTimeout(function(){
				$("#dialog" ).dialog("close");
			},3000);
		},
		dataType: "text"
	});
}
</script>
<div id="dialog" title="系统提示" style="display:none"><p id="msg" style="text-align:center"></p></div>
</body>
</html>
